From: Chong Yidong Date: Sun, 12 Feb 2012 05:10:30 +0000 (+0800) Subject: * lisp/window.el (display-buffer): Doc fix. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~787 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=796246deeedfc00a95b52def775da8c9accf4d1c;p=emacs.git * lisp/window.el (display-buffer): Doc fix. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 667f4d7a611..4ad9708b807 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2012-02-12 Chong Yidong + + * window.el (display-buffer): Doc fix (Bug#10785). + 2012-02-12 Glenn Morris * term/pc-win.el (x-selection-owner-p, x-own-selection-internal) diff --git a/lisp/window.el b/lisp/window.el index 298310418e8..edd8a113876 100644 --- a/lisp/window.el +++ b/lisp/window.el @@ -4625,16 +4625,20 @@ buffer. Return the window chosen for displaying BUFFER-OR-NAME, or nil if no such window is found. Optional argument ACTION should have the form (FUNCTION . ALIST). -FUNCTION is either a function or a list of functions. Each such -function is called with two arguments: the buffer to display and -an alist. It should either display the buffer and return the -window, or return nil if unable to display the buffer. +FUNCTION is either a function or a list of functions. +ALIST is an arbitrary association list (alist). + +Each such FUNCTION should accept two arguments: the buffer to +display and an alist. Based on those arguments, it should either +display the buffer and return the window, or return nil if unable +to display the buffer. The `display-buffer' function builds a function list and an alist -from `display-buffer-overriding-action', `display-buffer-alist', -the ACTION argument, `display-buffer-base-action', and -`display-buffer-fallback-action' (in that order). Then it calls -each function in the combined function list in turn, passing the +by combining the functions and alists specified in +`display-buffer-overriding-action', `display-buffer-alist', the +ACTION argument, `display-buffer-base-action', and +`display-buffer-fallback-action' (in order). Then it calls each +function in the combined function list in turn, passing the buffer as the first argument and the combined alist as the second argument, until one of the functions returns non-nil.